package com.getword.mongodao;

import com.getword.domain.User;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface UserRepository extends MongoRepository<User, Long>, UserOperations {
    User findByLoginName(String userLoginName);
    User findUserByLoginNameAndIdNot(String loginName, long id);
    User findUserById(Long id);
}
